<template>
	<view>
		<question-header
		:subject = 'subject' 
		:subjectSize="subjectSize"></question-header>
		<view class="content">
			<question-stem :subject="subject"></question-stem>
			<analysis-choice-item :subject="subject"></analysis-choice-item>
		</view>
	</view>
</template>

<script>
	import {
		isEmpty
	} from '@/utils/index'
	import QuestionHeader from './QuestionHeader';
	import QuestionStem from './QuestionStem';
	import AnalysisChoiceItem from './AnalysisChoiceItem';
	export default{
		components:{
			QuestionHeader,
			QuestionStem,
			AnalysisChoiceItem
		},
		props:{
			subject:{
				type:Object,
				default(){
					return {}
				}
			},
			subjectSize: 0
		},
	}
</script>

<style lang="scss" scoped>
	.content{
		margin: 20upx;
		font-size: 28upx;
		border-radius: 8rpx;
		box-shadow: 0 0 10upx #eaeaea;
		padding: 30upx 30upx;
	}
	
	.head {
		position: relative;
		height: 100upx;
		line-height: 100upx;
		margin: 0 20upx;
	
		&-left {
			position: absolute;
			display: inline-block;
			width: 75%;
			left: 0;
		}
	
		&-right {
			position: absolute;
			display: inline-block;
			right: 0;
			vertical-align: middle;
			width: 10%;
			line-height: 100upx;
		}
	
		&-text {
			font-size: 30upx;
			color: #333;
			font-weight: bold;
			overflow: hidden;
			text-overflow: ellipsis;
			white-space: nowrap;
			max-width:300upx;
			display: inline-block;
		}
	
		&-i {
			display: inline-block;
			margin-right: 50upx;
		}
	
		&-ico {
			margin-top: 20upx;
			display: inline-block;
			width: 40upx;
			height: 40upx;
			text-align: center;
			background: #999;
			border-radius: 50%;
			color: #fff;
		}
	
		&-num {
			display: inline-block;
			color: #5ea1f8;
			font-size: 20upx;
		}
	}
	
</style>
